package com.ruoyi.carService.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carService.mapper.CarOrdersMapper;
import com.ruoyi.system.api.domain.CarOrders;
import com.ruoyi.carService.service.ICarOrdersService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class CarOrdersServiceImpl implements ICarOrdersService 
{

    @Autowired
    private CarOrdersMapper carOrdersMapper;

    /**
     * 查询订单
     * 
     * @param ordId 订单主键
     * @return 订单
     */
    @Override
    public CarOrders selectCarOrdersByOrdId(Long ordId)
    {
        return carOrdersMapper.selectCarOrdersByOrdId(ordId);
    }

    /**
     * 查询订单列表
     *
     * @param carOrders 订单
     * @return 订单
     */
    @Override
     public List<CarOrders> selectCarOrdersList(CarOrders carOrders)
   {
        return carOrdersMapper.selectCarOrdersList(carOrders);
    }


    @Override
    public List<CarOrders> selectCarOrdersList2(CarOrders carOrders) {
        return carOrdersMapper.selectCarOrdersList2(carOrders);
    }

    /**
     * 新增订单
     * 
     * @param carOrders 订单
     * @return 结果
     */
    @Override
    public int insertCarOrders(CarOrders carOrders)
    {
        return carOrdersMapper.insertCarOrders(carOrders);
    }

    /**
     * 修改订单
     * 
     * @param carOrders 订单
     * @return 结果
     */
    @Override
    public int updateCarOrders(CarOrders carOrders)
    {
        return carOrdersMapper.updateCarOrders(carOrders);
    }

    /**
     * 批量删除订单
     * 
     * @param ordIds 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteCarOrdersByOrdIds(Long[] ordIds)
    {
        return carOrdersMapper.deleteCarOrdersByOrdIds(ordIds);
    }

    /**
     * 删除订单信息
     * 
     * @param ordId 订单主键
     * @return 结果
     */
    @Override
    public int deleteCarOrdersByOrdId(Long ordId)
    {
        return carOrdersMapper.deleteCarOrdersByOrdId(ordId);
    }




}
